<%@page import="com.yymmarket.forum.admin.AdminAction,com.yymmarket.forum.admin.AdminService,com.yymmarket.forum.util.LevelUtil,com.yymmarket.forum.cache.ForumCache,com.yymmarket.forum.admin.AdminBean,com.yymmarket.forum.util.SessionUtil,com.yymmarket.framework.PagingBean,com.yymmarket.forum.util.BaseUtil,com.yymmarket.util.StringUtil,com.yymmarket.forum.bbs.ContentBean,java.util.List,com.yymmarket.forum.bbs.ContentService,com.yymmarket.forum.bbs.BBSService,com.yymmarket.framework.WebAction"%><%@ 
page contentType="text/vnd.wap.wml;charset=utf-8"%><%
response.setHeader("Cache-Control","no-cache");
AdminAction webAction = new AdminAction(request,response);
int id = webAction.getParameterInt("id");

int p = webAction.getParameterInt("p");

BBSService bbs = BBSService.getInstance();

Integer uid = SessionUtil.getSessionUserId(request);
AdminBean adminBean = ForumCache.getAdminBean(LevelUtil.TYPE_BBS,id,uid);

boolean flag = webAction.addFuBanZhu();

%><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card title="<%=ForumCache.getBBSBean(id).getTitle()+"版主" %>">
<p><%
List<AdminBean> list = AdminService.getInstance().getAdminByLevel(LevelUtil.TYPE_BBS,id,LevelUtil.BBS_LEVEL_FUBANZHU);
int size = list.size();
if(size > 0) {
int i = 0;
for(AdminBean bean : list) {
	i++;
%><%=i%>.<a href="<%=bean.getUserId() %>"><%=StringUtil.toWml(ForumCache.getUser(bean.getUserId()).getUserName()) %></a>(<%=bean.getAdminLevelString() %><%if(adminBean.getAdminLevel()>=LevelUtil.BBS_LEVEL_BANZHU&&bean.getAdminLevel()==LevelUtil.BBS_LEVEL_FUBANZHU) {
%><a href="forumAdmin.jsp?id=<%=id %>&amp;p=<%=p %>&amp;userId=<%=bean.getUserId() %>">撤销</a><%} %>)<br/><%
} 
} else {
%>该版块暂无版主<br/><%}%><%=webAction.getAttributeEnter("msg") %><%
	if(adminBean.getAdminLevel()>=LevelUtil.BBS_LEVEL_BANZHU) {
%>副版主ID:<br/>
<input name="userId" value=""/><br/>
<anchor>任命<go href="forumAdmin.jsp?id=<%=id %>&amp;p=<%=p %>" method="post">
<postfield name="userId" value="$userId" />
</go></anchor><br/><%} %>
<a href="forum.jsp?id=<%=id %>">&lt;返回<%=bbs.getBBSBeanById(id).getTitle() %></a><br/>
<a href="index.jsp">&lt;&lt;返回论坛</a><br/>
<%= BaseUtil.bottom(request,response) %></p>
</card>
</wml>